package com.zxjbyte.yiyi.framework.tenant.util;

import cn.hutool.core.util.RandomUtil;

/**
 * 租户ID生成器
 * @Author zhangxingjia
 * @Date 2023/3/14 12:16
 * @Version: 1.0
 */
public class TenantIdGenerator {

    private static final String RANDOM_NUMBER = "0123456789";

    /**
     * 生成6位租户ID
     * @return
     */
    public static String generate() {
        return RandomUtil.randomString(RANDOM_NUMBER,6);
    }
}
